package com.beiding.objectanalyzer;


import java.util.*;

//对象集
public class Objects {

    private Set<Object> objects;

    public Objects() {
        objects = new HashSet<>();
    }

    public Objects(Set<Object> objects) {
        this.objects = objects;
    }

    public void add(Object object) {
        object.getClass();//非空
        objects.add(object);
    }


    //深度递归获取分析键

    public List<AnalyzeKey> makeAnalyzeKey() {
        //构建分析键

        List<AnalyzeKey> analyzeKeys = new ArrayList<>();

        for (Object object : objects) {
            KeyNode keyNode = ObjectUtils.createKeyNode(object);
        }

        return analyzeKeys;

    }

}
